import request from "@/utils/request";

// 查询幻灯列表
export function slideshowList(data) {
  return request({
    url: "/cargo/slideshow/page",
    method: "post",
    data,
  });
}

// 查询广告列表
export function advertList(data) {
  return request({
    url: "/CargoAdvertising/page",
    method: "post",
    data,
  });
}

// 新增幻灯表
export function addSilder(data) {
  return request({
    url: "/cargo/slideshow/add",
    method: "post",
    data,
  });
}

// 新增广告
export function createAdvert(data) {
  return request({
    url: "/CargoAdvertising/add",
    method: "post",
    data,
  });
}

// 修改幻灯表
export function updateSilder(data) {
  return request({
    url: "/cargo/slideshow/update",
    method: "post",
    data,
  });
}

// 修改广告
export function updateAdvert(data) {
  return request({
    url: "/CargoAdvertising/update",
    method: "post",
    data,
  });
}

// 删除
export function deleteSilder(query) {
  return request({
    url: "/cargo/slideshow/delete",
    method: "get",
    params: query,
  });
}

// 删除
export function deleteAdvert(query) {
  return request({
    url: "/CargoAdvertising/delete",
    method: "get",
    params: query,
  });
}
